<html lang="zh">
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="博主郭雄飞为您提供最全的今日资讯，Today Information">
    <meta name="keywords" content="今日资讯，郭雄飞">
    <meta name="author" content="GuoXiongfei">

    <title>今日资讯 - 郭雄飞的个人博客</title>

</head>

<body>
<script src="/js/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
<script type="application/javascript">
    function fn(response) {
        console.log("response:", response);
    };
    $(function () {
        function fn(response2) {
            console.log("response2:", response2);
        };

        function init() {
            $.ajax({
                url: 'https://www.guoxiongfei.cn/jsonp.js',
                jsonp: 'cb',
                jsonpCallback: 'fn',
                dataType: 'jsonp'
            }).done(function (rData) {
                console.log("rData:", rData);
            }).fail(function (err) {
                console.log('服务器超时，请重试！', err);
            });
            ;

            $.ajax({
                url: '/jsonp',
                jsonp: 'cb',
                jsonpCallback: 'fn',
                dataType: 'jsonp'
            }).done(function (rData2) {
                console.log("rData2:", rData2);
            }).fail(function (err2) {
                console.log('服务器超时，请重试！err2:', err2);
            });
            ;

        };
        init();


        function checkLogin() {
            $.ajax({
                type: 'post',
                url: 'http://www.baidu.com/',
                contentType: "application/json;charset=utf-8",
                dataType: "json",
                data: {},
                success: function (data) {
                    console.log("data:", data);
                    if (data.code == 0 && data.data) {

                    } else {
                        //alert(data.msg);

                    }
                },
                error: function (errorData) {
                    console.log("errorData:", errorData);
                }
            });
        }

        //checkLogin();

    });

</script>
</body>
</html>